import org.lwjgl.BufferUtils;
import java.nio.FloatBuffer;
import java.nio.DoubleBuffer;

public abstract class BufferHelper
{
	public static FloatBuffer makeBuffer(float... args)
	{
		FloatBuffer buffer = BufferUtils.createFloatBuffer(args.length);
		buffer.put(args).flip();
		return buffer;
	}
	
	public static DoubleBuffer makeBuffer(double... args)
	{
		DoubleBuffer buffer = BufferUtils.createDoubleBuffer(args.length);
		buffer.put(args).flip();
		return buffer;
	}
}